package com.zs.toolbox.web2j.system.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.zs.toolbox.web2j.common.domain.WtBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户-详细个人信息表
 * </p>
 *
 * @author eric.zhang
 * @since 2018-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_detail")
@ApiModel(value="WtUserDetailEntity对象", description="用户-详细个人信息表")
public class WtUserDetailEntity extends WtBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;

    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "male or female or unknow")
    @TableField("gender")
    private String gender;

    @TableField("brithday")
    @ApiModelProperty(value = "出生日期")
    private LocalDateTime brithday;

    @TableField("headimg")
    @ApiModelProperty(value = "头像")
    private String headimg;

    @TableField("location")
    @ApiModelProperty(value = "所在地")
    private String location;

    @TableField("occupation")
    @ApiModelProperty(value = "职业")
    private String occupation;

@TableField(value = "create_user", fill = FieldFill.INSERT)
    private Integer createUser;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否有效 1有效    2无效")
    @TableField("delete_status")
    @TableLogic
    private Integer deleteStatus;

}
